/**
 * 对推荐接口进行封装
 */
import jsonp from '../src/common/js/jsonp'
import { commonParams, options } from './config'

export function getRecommend () {
  const url = 'https://u.y.qq.com/cgi-bin/musicu.fcg'

  const data = Object.assign({}, commonParams, {
    platform: 'h5',
    uin: 0,
    needNewCode: 1
  })
  return jsonp(url, data, options)
}
